package com.demo.listener;

import com.demo.event.TestEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.event.ContextRefreshedEvent;
import org.springframework.stereotype.Component;

/**
 * @author zhangxiangnan
 * @date 2021/8/18  23:23
 */
@Component
public class TestListenerOne implements ApplicationListener<TestEvent> {
    @Override
    public void onApplicationEvent(TestEvent testEvent) {
        System.out.println("TestListener one onApplicationEvent");
    }
}
